Only send exposes on unmap if window really was unmapped
authorAlexander Larsson <alexl@redhat.com>
Tue, 3 Nov 2009 13:41:36 +0000 (14:41 +0100)
committerAlexander Larsson <alexl@redhat.com>
Thu, 5 Nov 2009 11:52:12 +0000 (12:52 +0100)
Exposing when you hide a hidden window is just a waste of time.

gdk/gdkwindow.c

index edb9581b5157ae80338c4b4a00572e70194a96b6..63eb8474acfbb288d57151b871ba8b19f3310ad3 100644 (file)
@@ -6829,7 +6829,8 @@ gdk_window_hide (GdkWindow *window)
     }
 
   /* Invalidate the rect */
-  gdk_window_invalidate_in_parent (private);
+  if (was_mapped)
+    gdk_window_invalidate_in_parent (private);
 }
 
 /**